package cn.com.shopec.erp.purchase.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;

/**
 * 商品库存和采购单关系表
 * 
 * @author Jack
 */

@Entity
@Table(name = "TBL_STOCK_PURCHASE")
public class StockPurchase implements Serializable {

	private static final long serialVersionUID = 7171362609166080199L;

	private String id;
	/** 采购单号 **/
	private String poNo;
	/** 采购单货品单号 **/
	private String prqNo;
	/** 商品库存单号 **/
	private String stockNo;

	/** 货品编号 **/
	private String prodNo;
	/** 商品编号 **/
	private String commoNo;
	/** 商品名称 **/
	private String commoName;
	/** 规格编号 **/
	private String specNo;
	/** 规格名称 **/
	private String specName;
	/** 供应商编号 **/
	private String supNo;
	/** 供应商名称 **/
	private String supName;
	/** 仓库编号 **/
	private String whNo;
	/** 仓库名称 **/
	private String whName;

	/** 采购入库总数 **/
	private long commonNumner;
	/** 剩余总数数量 **/
	private long remainingAmount;
	/** 采购入库时良品数 **/
	private long yieldNumner;
	/** 当前良品数量剩余数 **/
	private long yieldAmountNumner;
	/** 采购入库时次品数量 **/
	private long defectiveNumber;
	/** 当前次品剩余数量 **/
	private long defectiveAmountNumber;
	/** 创建时间 **/
	private String createTime;

	public StockPurchase() {
	}

	public StockPurchase(String id, String poNo, String stockNo, long commonNumner, long remainingAmount,
			String createTime, long yieldNumner, long yieldAmountNumner, long defectiveNumber,
			long defectiveAmountNumber, String prqNo) {
		super();
		this.id = id;
		this.poNo = poNo;
		this.stockNo = stockNo;
		this.commonNumner = commonNumner;
		this.remainingAmount = remainingAmount;
		this.createTime = createTime;
		this.yieldNumner = yieldNumner;
		this.yieldAmountNumner = yieldAmountNumner;
		this.defectiveNumber = defectiveNumber;
		this.defectiveAmountNumber = defectiveAmountNumber;
		this.prqNo = prqNo;
	}

	@GenericGenerator(name = "generator", strategy = "uuid.hex")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "id", unique = true, nullable = false, length = 32)
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getPoNo() {
		return poNo;
	}

	public void setPoNo(String poNo) {
		this.poNo = poNo;
	}

	public String getStockNo() {
		return stockNo;
	}

	public void setStockNo(String stockNo) {
		this.stockNo = stockNo;
	}

	public long getCommonNumner() {
		return commonNumner;
	}

	public void setCommonNumner(long commonNumner) {
		this.commonNumner = commonNumner;
	}

	public long getRemainingAmount() {
		return remainingAmount;
	}

	public void setRemainingAmount(long remainingAmount) {
		this.remainingAmount = remainingAmount;
	}

	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	public long getYieldNumner() {
		return yieldNumner;
	}

	public void setYieldNumner(long yieldNumner) {
		this.yieldNumner = yieldNumner;
	}

	public long getDefectiveNumber() {
		return defectiveNumber;
	}

	public void setDefectiveNumber(long defectiveNumber) {
		this.defectiveNumber = defectiveNumber;
	}

	public long getYieldAmountNumner() {
		return yieldAmountNumner;
	}

	public void setYieldAmountNumner(long yieldAmountNumner) {
		this.yieldAmountNumner = yieldAmountNumner;
	}

	public long getDefectiveAmountNumber() {
		return defectiveAmountNumber;
	}

	public void setDefectiveAmountNumber(long defectiveAmountNumber) {
		this.defectiveAmountNumber = defectiveAmountNumber;
	}

	public String getPrqNo() {
		return prqNo;
	}

	public void setPrqNo(String prqNo) {
		this.prqNo = prqNo;
	}

	public String getProdNo() {
		return prodNo;
	}

	public void setProdNo(String prodNo) {
		this.prodNo = prodNo;
	}

	public String getCommoNo() {
		return commoNo;
	}

	public void setCommoNo(String commoNo) {
		this.commoNo = commoNo;
	}

	public String getCommoName() {
		return commoName;
	}

	public void setCommoName(String commoName) {
		this.commoName = commoName;
	}

	public String getSpecNo() {
		return specNo;
	}

	public void setSpecNo(String specNo) {
		this.specNo = specNo;
	}

	public String getSpecName() {
		return specName;
	}

	public void setSpecName(String specName) {
		this.specName = specName;
	}

	public String getSupNo() {
		return supNo;
	}

	public void setSupNo(String supNo) {
		this.supNo = supNo;
	}

	public String getSupName() {
		return supName;
	}

	public void setSupName(String supName) {
		this.supName = supName;
	}

	public String getWhNo() {
		return whNo;
	}

	public void setWhNo(String whNo) {
		this.whNo = whNo;
	}

	public String getWhName() {
		return whName;
	}

	public void setWhName(String whName) {
		this.whName = whName;
	}
}